<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/8/25 0025
 * Time: 下午 4:39
 */
namespace app\back\controller;
class User extends  \app\back\controller\BaseAdmin{

    function set_model()
    {
        $this->model=new \app\model\User();
    }

    function list_init(){
        $model=$this->get_model();
        $data=$model->order("id","desc")->paginate();

        return [


            'list_title'=>['ID','手机','注册时间'],
            'list_data_name'=>['id','mobile','created_at'],

            'list_data'=>$data,
            'page_html'=>$model->paginate()->render(),
            'hide_edit'=>1,
            'hide_delete'=>1,

        ];
    }
}